package com.ftg.wymall.comm.vo;

/**
 * 状态码
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/9 上午9:08
 */


public enum CodeStatusEnum {

    /**
     * 成功状态
     */
    SUCCESS(200,"表示操作成功了"),
    /**
     * 用户名或密码错误
     */
    INVALID_USERNAME_PASSWORD(501,"用户名或者密码错误,请联系管理员!!!"),
    /**
     *
     */
    INVALID_TOKEN(502,"令牌无效!!!"),

    INVALID_LOGIN_TOKEN(503,"令牌无效"),
    /**
     * 失败状态
     */
    FAILURE(500,"表示操作失败了");



    private Integer code;

    private String desc;

    CodeStatusEnum(Integer code ,String desc){
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
